<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>页面顶部</title>
	<link href="../Public/style/left.css" rel="stylesheet" type="text/css">
	<link href="../Public/style/dtree.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="../Public/js/dtree.js"></script>
</head>
<body>
	<div id="col1">
		<div class="dtree">
		<form action="__URL__/left" name="myForm" method="post">
		<select name="hid" onchange="javascript:myForm.submit()">
		 	<option value='0'>--请选择服务器--</option>
			<volist name="hosts" id="vo">
				<option value="{$vo.id}" <eq name="curHid" value="$vo.id">selected="selected"</eq>>{$vo.name}</option>
			</volist>
		</select>
		</form>
		<p>&nbsp;&nbsp;<a href="javascript: d.openAll();">全部展开</a> | &nbsp;<a href="javascript: d.closeAll();">全部关闭</a></p>
		<script type="text/javascript">
			d = new dTree('d','../Public/images','main');
			d.add(0,-1,'游戏后台管理');
			<foreach name="list" item="vo" >
			<if condition="$vo.node_url == ''">
			d.add({$vo.id},{$vo.parent_id},'{$vo.caption}');
			<else/>
			d.add({$vo.id},{$vo.parent_id},'{$vo.caption}','__APP__/{$vo.node_url}?idx={$vo.id}');
			</if>
			</foreach>
			document.write(d);
		</script>
		</div>
	</div>
</body>
</html>
